cmake_minimum_required(VERSION 3.10 FATAL_ERROR)

project(condition)

set(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT off)

if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
    set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/output/)
else()
    set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/output/test)
endif()

message("CMAKE_INSTALL_PREFIX is " ${CMAKE_INSTALL_PREFIX})